package com.yang.pojo;

import com.yang.entity.Orderdetail;
import com.yang.entity.Orders;

import java.sql.Date;
import java.util.List;

public class OrdersVO {
    private String id;

    private String username;

    private String address;

    private Date creationtime;

    private String tel;

    private Double totalamount;

    private Integer status;

    private Integer userid;

    private List<Orderdetail> sons;
    public OrdersVO(Orders order,List<Orderdetail> sons) {
        this.id=order.getId();
        this.address=order.getAddress();
        this.creationtime=order.getCreationtime();
        this.tel=order.getTel();
        this.sons=sons;
        this.status=order.getStatus();
        this.totalamount=order.getTotalamount();
        this.userid=order.getUserid();
        this.username=order.getUsername();
    }
    public OrdersVO() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreationtime() {
        return creationtime;
    }

    public void setCreationtime(Date creationtime) {
        this.creationtime = creationtime;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Double getTotalamount() {
        return totalamount;
    }

    public void setTotalamount(Double totalamount) {
        this.totalamount = totalamount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public List<Orderdetail> getSons() {
        return sons;
    }

    public void setSons(List<Orderdetail> sons) {
        this.sons = sons;
    }
}
